package OrderedCoverPackage;

import ClassAlgebra.Expression;

/**
 *
 * @author Martin Haulrich
 */
public class PartitionExpressionTuple {

    Expression partitionExpression;

    Expression partitionTreeExpression;

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final PartitionExpressionTuple other = (PartitionExpressionTuple) obj;
        if (this.partitionExpression != other.partitionExpression && (this.partitionExpression == null || !this.partitionExpression.equals(other.partitionExpression))) {
            return false;
        }
        if (this.partitionTreeExpression != other.partitionTreeExpression && (this.partitionTreeExpression == null || !this.partitionTreeExpression.equals(other.partitionTreeExpression))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 89 * hash + (this.partitionExpression != null ? this.partitionExpression.hashCode() : 0);
        hash = 89 * hash + (this.partitionTreeExpression != null ? this.partitionTreeExpression.hashCode() : 0);
        return hash;
    }



}
